<?php
    /**
    * Email : mr.linhtx88@gmail.com   
    * Phone : +84919.021.508
    * 
    * History       :
    *   Date        : 17-Apr-2012
    *   Modified by : mr.linhtx88@gmail.com        
    *   Purpose     : create class dalVideo 
    */

    include_once('./Library/DataProvider/config/connectDB.php');     

    class dalVideo{

        /*
        *  @get lastest Video Top 1 in forum Video  
        * 
        *  @input   : $query from 'stco.vn\Module\Video\bllVideo.php' function getTopVideo_1
        *  @output  ; contect of lastest Video Top 1          
        */ 
		public function getTopVideo($query){
            connectDB::connDB_VBB(); // connect DB of Forum STCO          
            $data = null;  
            mysql_query("SET NAMES 'utf8'"); 
            $result = mysql_query($query);             
            if(!$result){
                $data = mysql_error();
            } else {
                    //echo "add to data <br/>";
               $data = $result;       
            }  
            // return
            return $data;         
        }   
    }
?>
